package team.headnurse.nursemanagement.model;

import team.headnurse.nursemanagement.serializable.ExpectationPk;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.sql.Date;

/**
 * @author Eugene-Forest
 */
@Entity
@Table(name = "vacation_expectation")
@IdClass(value = ExpectationPk.class)
public class VacationExpectation {

  @Id
  private String staffId;
  @Id
  private int priority;

  private java.sql.Date date;
  private int days=1;

  public VacationExpectation(){}
  public VacationExpectation(String staffId, int priority, Date date, int days) {
    this.staffId = staffId;
    this.priority = priority;
    this.date = date;
    this.days = days;
  }

  public VacationExpectation(String staffId, int priority, Date date) {
    this.staffId = staffId;
    this.priority = priority;
    this.date = date;
  }

  public String getStaffId() {
    return staffId;
  }

  public void setStaffId(String staffId) {
    this.staffId = staffId;
  }

  public java.sql.Date getDate() {
    return date;
  }

  public void setDate(java.sql.Date date) {
    this.date = date;
  }

  public int getPriority() {
    return priority;
  }

  public void setPriority(int priority) {
    this.priority = priority;
  }

  public int getDays() {
    return days;
  }

  public void setDays(int days) {
    this.days = days;
  }
}
